/**
 * 小程序配置文件
 */

var proto = "https";
//var proto = "http";
var host = 'www.heyidingzhi.com';
//var host = '127.0.0.1';
var apiVer = 'v1';

var config = {
    version: '1.0.0.0',

    urls: {
      
        user_one: `${proto}://${host}/api/${apiVer}/user/one`,
        save_say: `${proto}://${host}/api/${apiVer}/user/save_say`,
        save_wxid: `${proto}://${host}/api/${apiVer}/user/save_wxid`,
        one_by_openid: `${proto}://${host}/api/${apiVer}/user/one_by_openid`,
        user_new: `${proto}://${host}/api/${apiVer}/user/new`,

        onebook: `${proto}://${host}/api/${apiVer}/book/onebook`,
        putaway: `${proto}://${host}/api/${apiVer}/book/putaway`,
        editbook: `${proto}://${host}/api/${apiVer}/book/editbook`,
        unshelve: `${proto}://${host}/api/${apiVer}/book/unshelve`,
        books_newputaway: `${proto}://${host}/api/${apiVer}/book/books_newputaway`,
        books_newborrow: `${proto}://${host}/api/${apiVer}/book/books_newborrow`,
        someone_books: `${proto}://${host}/api/${apiVer}/book/someone_books`,
        books_borrow_out: `${proto}://${host}/api/${apiVer}/book/books_borrow_out`,
        books_borrow_in: `${proto}://${host}/api/${apiVer}/book/books_borrow_in`,
        search_by_name_1: `${proto}://${host}/api/${apiVer}/book/search_by_name_1`,
        search_by_name_2: `${proto}://${host}/api/${apiVer}/book/search_by_name_2`,
        search_by_name_3: `${proto}://${host}/api/${apiVer}/book/search_by_name_3`,
        search_by_name_4: `${proto}://${host}/api/${apiVer}/book/search_by_name_4`,

        one_apply: `${proto}://${host}/api/${apiVer}/book_apply/one_apply`,
        book_apply_new: `${proto}://${host}/api/${apiVer}/book_apply/new`,
        applies_by_me: `${proto}://${host}/api/${apiVer}/book_apply/applies_by_me`,
        applies_to_me: `${proto}://${host}/api/${apiVer}/book_apply/applies_to_me`,   
        agree_apply: `${proto}://${host}/api/${apiVer}/book_apply/agree_apply`,
        ack_apply: `${proto}://${host}/api/${apiVer}/book_apply/ack_apply`,
        apply_ret: `${proto}://${host}/api/${apiVer}/book_apply/apply_ret`,
        ack_ret: `${proto}://${host}/api/${apiVer}/book_apply/ack_ret`,
        removeApply: `${proto}://${host}/api/${apiVer}/book_apply/remove`,

        smallnote_new: `${proto}://${host}/api/${apiVer}/smallnote/new`,
        onebook_notes: `${proto}://${host}/api/${apiVer}/smallnote/onebook_notes`,

        qiniu_uptoken: `${proto}://${host}/session/${apiVer}/qiniu_uptoken`,
        code: `${proto}://${host}/session/${apiVer}/code`,


        weChatList: `${proto}://${host}/api/${apiVer}/privatemsg/latest_chat_sessions`, 
        //创建新会话
        newChatsession: `${proto}://${host}/api/${apiVer}/privatemsg/new_chatsession`,
        //查询点对点的聊天记录
        oneChatsessionMsgs: `${proto}://${host}/api/${apiVer}/privatemsg/one_chatsession_msgs`,
        //发送私信
        send_chat_msg: `${proto}://${host}/api/${apiVer}/privatemsg/new`,
        //记录借阅事件
        record_borrow_action: `${proto}://${host}/api/${apiVer}/eventraft/borrow_action`,
        //查询节约轨迹
        find_borrow_history: `${proto}://${host}/api/${apiVer}/eventraft/onebook_history`,
        //查询个人详情页面的书籍信息
        book_status_counts: `${proto}://${host}/api/${apiVer}/book_apply/status_counts`,
    },
    
  city_code:{
    ChengDu: 0,
  }
};

module.exports = config;